package com.sam.im.heiqun.uis.adapters.holder;

import android.view.View;
import android.view.ViewStub;
import android.widget.ImageView;
import android.widget.TextView;

import com.sam.im.heiqun.R;

/**
 * Created by leijiawen on 2017/6/19.
 */
public class ColatVideoViewHolder extends ColactionBaseViewHolder {
    public ImageView imgVideo ;
    public TextView tvTime ;
    public ColatVideoViewHolder(View itemView, int viewType) {
        super(itemView, viewType);
    }

    @Override
    public void initSubView(int viewType, ViewStub viewStub) {
        if(viewStub == null){
            throw new IllegalArgumentException("viewStub is null...");
        }
        viewStub.setLayoutResource(R.layout.layout_colatvideo_holer);
        View subView = viewStub.inflate();
        ImageView bq = (ImageView) subView.findViewById(R.id.img_video);
        tvTime = (TextView) subView.findViewById(R.id.tv_time);
        if (bq != null) {
            this.imgVideo = bq;
        }
    }
}
